<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/bootstrap.css" />
		<script type="text/javascript" src="js/jquery-3.3.1.js"></script>
		<script type="text/javascript" src="js/bootstrap.js"></script>
		<script>
			$('#identifier').modal(options)
		</script>
	</head>
	<body>
		<h2>编辑</h2>
		<!-- 按钮触发模态框 -->
		<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#Model">编辑</button>
		<!-- 模态框（Modal） -->
		<div class="modal fade" id="Model" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<form action="<%=context %>/servlet/CategoryEditServlet?action=update" method="post">
						<div class="modal-body">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><br />
							<div class="form-group">
								<label class="control-label">姓名:</label>
								<input type="text" class="form-control" name="name" id="name">
								<label class="control-label">所属医院:</label>
								<input type="text" class="form-control" name="hospital" id="hospital">
								<label class="control-label">性别:</label>
								<input type="text" class="form-control" name="gender" id="gender">
								<label class="control-label">年龄:</label>
								<input type="text" class="form-control" name="age" id="age">
								<label class="control-label">资历:</label>
								<input type="text" class="form-control" name="degree" id="degree">
								<label class="control-label">电话号码:</label>
								<input type="text" class="form-control" name="mobile" id="mobile">
								<label class="control-label">创建时间:</label>
								<input type="text" class="form-control" name="create_time" id="create_time">
							</div>
							<input type="text" class="form-control" name="main_id" id="updatemainid" style="display: none">
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
							<button type="submit" class="btn btn-primary">提交修改</button>
						</div>
					</form>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal -->
		</div>
		
<script>
$(function() {
    $('#Model').modal('hide')
});
</script>
<script>
$(function() {
    $('#Model').on('hide.bs.modal',
    function() {
        alert('您的修改未保存，确认关闭吗？');
    })
});
</script>
	</body>

</html>